﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ZedGraph;

namespace PermonAnalizer
{
    class DataPoint
    {
        private XDate time;
        private long value;

        public DataPoint(string t, long v)
        {
            DateTime dt = DateTime.Parse( t );
            time = new XDate(dt);
            value = v;
        }

        public string getTime(){
            return time.ToString() ;
        }

        public XDate getXDate()
        {
            return time;
        }

        public long getValue()
        {
            return value;
        }

        public string toString()
        {
            return time.ToString() + " | " + value;
        }

    }
}
